<div>
    <link rel="stylesheet" href="code/css/common.css">
    <link rel="stylesheet" href="code/css/index.css">
    <style>
        .layui-layer-title{
            display: none;
        }
        .layui-layer-content{
            background-color: #393D49;
            color: #fff;
        }
        #wrapper{
            background-color: #F3F3F5;
        }
    </style>
    <script>
//        $('.left').append('<div class="modal"></div>')
    </script>
    <div class="content_title">
        <span>资源主推管理>>{{msg}}</span>
        <button ng-show="showBack" ng-click="cancel()" class="common_btn cancel">返回</button>
    </div>

    <div class="ad_content">
        <table class="table push_add_table">
            <tr>
                <td>
                    <i class="redStar">*</i>
                    资源属性:
                </td>
                <td colspan="3">
                    <input id="push_add_type1" type="radio" name="type" value="0" checked>
                    <label for="push_add_type1" class="common_label">文章</label>
                    <input id="push_add_type2" type="radio" name="type" value="1">
                    <label for="push_add_type2" class="common_label">视频</label>
                </td>
            </tr>
            <tr>
                <td>
                    <i class="redStar">*</i>
                    资源ID:
                </td>
                <td  colspan="3">
                    <input type="text" class="common_input" ng-model="data.contentId"
                           onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)">
                </td>
            </tr>

            <tr>
                <td>
                    大首页主推:
                </td>
                <td>
                    <select id="push_major" class="select">
                        <option value="1">否</option>
                        <option value="0">是</option>
                    </select>
                </td>
                <td>
                    主推时间:
                </td>
                <td>
                    <div class="form-group">
                        <input id="push_major_time1" ng-model="data.start"  class="form-control layer-date" placeholder="开始时间"onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                    </div>
                    <div class="form-group">
                        <input id="push_major_time2" ng-model="data.end"  class="form-control layer-date" placeholder="结束时间"onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                    </div>
                    <!--<input type="date" class="date_input" id="push_major_time1"> - -->
                    <!--<input type="date" class="date_input" id="push_major_time2">-->
                </td>
            </tr>

            <tr>
                <td>
                    板块主推:
                </td>
                <td>
                    <select id="push_minor" class="select">
                        <option value="1">否</option>
                        <option value="0">是</option>
                    </select>
                </td>
                <td>
                    主推时间:
                </td>
                <td>
                    <div class="form-group">
                        <input id="push_minor_time1" ng-model="data.first"  class="form-control layer-date" placeholder="开始时间"onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                    </div>
                    <div class="form-group">
                        <input id="push_minor_time2" ng-model="data.last"  class="form-control layer-date" placeholder="结束时间"onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                    </div>
                    <!--<input type="date" class="date_input" id="push_minor_time1"> - -->
                    <!--<input type="date" class="date_input" id="push_minor_time2">-->
                </td>
            </tr>

            <tr>
                <td>
                    分类:
                </td>
                <td colspan="3">
                    <!--<select id="push_tag" class="select">-->
                        <!--<option value=""></option>-->
                        <!--<option value="御宅">御宅</option>-->
                        <!--<option value="逗趣">逗趣</option>-->
                        <!--<option value="绅士">绅士</option>-->
                        <!--<option value="番剧">番剧</option>-->
                        <!--<option value="游戏">游戏</option>-->
                        <!--<option value="音乐">音乐</option>-->
                        <!--<option value="圈子">圈子</option>-->
                        <!--<option value="生活">生活</option>-->
                        <!--<option value="快看">快看</option>-->
                    <!--</select>-->
                    <select id="resource_add_type1" class="select" ng-model="selected1" ng-options="s.name for s in list">
                        <!--<option value=""></option>-->
                    </select>
                    <select id="resource_add_type2" class="select" ng-model="selected2" ng-options="s.name for s in selected1.child">
                        <!--<option value=""></option>-->
                    </select>
                    <select id="resource_add_type3" class="select"  ng-model="selected3" ng-options="s.value for s in selected2.child">
                        <!--<option value=""></option>-->
                    </select>
                </td>
            </tr>

            <tr>
                <td>排序值:</td>
                <td colspan="3">
                    <input type="num" class="id_input" ng-model="data.weight">
                </td>
            </tr>

            <tr>
                <td>
                    <i class="redStar">*</i>
                    是否显示:
                </td>
                <td colspan="3">
                    <input type="radio" id="push_status1" name="push_status" value="0" checked>
                    <label class="common_label" for="push_status1">显示</label>

                    <input type="radio" id="push_status2" name="push_status" value="1">
                    <label class="common_label" for="push_status2">隐藏</label>
                </td>
            </tr>
        </table>

        <div class="preserveCancel">
            <button class="preserve_btn" ng-click="pushPost()">保存</button>
            <button class="cancel_btn" ng-click="pushCancel()">取消</button>
        </div>
    </div>
</div>


